-- GENERATED SPELL FOR [Corrosive Sap Beast] --


function spell0_4021(pUnit, Event) --@Corrosive Poison,n/a--
pUnit:FullCastSpellOnTarget(3396,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4021', 31500, 1)
end

function Sorts_4021(pUnit, Event)
local choix_sorts_4021 = math.random(0, 0)
if choix_sorts_4021 == 0 then
pUnit:RegisterEvent('spell0_4021', 1, 1)
end
end

function mob4021_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4021', math.random(1500, 3000), 1)
end

function mob4021_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4021_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4021_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4021, 1, 'mob4021_Action')
RegisterUnitEvent(4021, 2, 'mob4021_Leave')
RegisterUnitEvent(4021, 3, 'mob4021_Kill')
RegisterUnitEvent(4021, 4, 'mob4021_Die')
